package data;

public class Centroid {
	private int dimension = 2;
	private int numberOfCluster = 3;
	private double[][] centroids =null;
	public Centroid(){
		this.centroids=new double[numberOfCluster][dimension];
	}
	public Centroid(int numberOfCluster,int dimension){
		this.dimension = dimension;
		this.numberOfCluster=numberOfCluster;
		this.centroids=new double[numberOfCluster][dimension];
	}
	public void setCentroid(int indexOfCluster, double[] newCentroid){
		this.centroids[indexOfCluster]=newCentroid;
	}
	public double[] getCentroid(int indexOfCluster){
		return this.centroids[indexOfCluster];
	}
	public void initializeCentroids(int numberOfData){
		//set initial centroid
	}
}